﻿<Window x:Class="Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:cwpf="http://www.codeplex.com/CompositeWPF"
    xmlns:infra="clr-namespace:EHaskins.Frc.Infrastructure;assembly=EHaskins.Frc.Infrastructure"
    Title="Shell" Height="600" Width="800">
    <Window.Resources>
        <Style TargetType="TabItem">
            <Setter Property="Header" Value="{Binding Content.DataContext.Header, RelativeSource={RelativeSource Self}}"/>
        </Style>
    </Window.Resources>
    
    <Grid>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="Auto"/>
    		<ColumnDefinition Width="*"/>
    	</Grid.ColumnDefinitions>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto"/>
    		<RowDefinition Height="*"/>
    	</Grid.RowDefinitions>
        <TextBlock Text="FRC1103 Dashboard Viewer" 
			Margin="5" 
			FontSize="24" FontStyle="Italic" FontFamily="Consolas"
			Grid.Row="0" Grid.Column="0" />
		<ContentControl cwpf:RegionManager.RegionName="{x:Static infra:Regions.RightHeader}"
			Margin="5" 
			Grid.Row="0" Grid.Column="1" />
		<TabControl cwpf:RegionManager.RegionName="{x:Static infra:Regions.MainContent}"
			Margin="5" 
			Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" />
    </Grid>
</Window>
